package com.chengdu.chun.po;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Classes {
    private Integer cid;

    private String cname;

    private Integer cgrade;

    private Integer uid;

    /** 网页上输出的只是字符串格式，需要添加注解给出格式的转换模式 */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date cdate;

    private Date createtime;

    private Integer cstatus;

    //    班级的学生数量
    private int studentsnum;

    public int getStudentsnum() {
        return studentsnum;
    }

    public void setStudentsnum(int studentsnum) {
        this.studentsnum = studentsnum;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname == null ? null : cname.trim();
    }

    public Integer getCgrade() {
        return cgrade;
    }

    public void setCgrade(Integer cgrade) {
        this.cgrade = cgrade;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getCstatus() {
        return cstatus;
    }

    public void setCstatus(Integer cstatus) {
        this.cstatus = cstatus;
    }

    @Override
    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
                ", cgrade=" + cgrade +
                ", uid=" + uid +
                ", cdate=" + cdate +
                ", createtime=" + createtime +
                ", cstatus=" + cstatus +
                ", studentsnum=" + studentsnum +
                '}';
    }
}